/*
 * To change this template, choose Tools | Templates
 */

package com.spartancoder.accommodation.beans;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author andrei
 */
public class CollegeBean {

	private int collegeId, universityId;
	private String name, address;
	private boolean available;

	public void fill(ResultSet rs) throws SQLException {
		setCollegeId(rs.getInt("college_id"));
		setUniversityId(rs.getInt("university_id"));
		setName(rs.getString("name"));
		setAddress(rs.getString("address"));
		setAvailable(rs.getBoolean("available"));
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public boolean isAvailable() {
		return available;
	}

	public void setAvailable(boolean available) {
		this.available = available;
	}

	public int getCollegeId() {
		return collegeId;
	}

	public void setCollegeId(int collegeId) {
		this.collegeId = collegeId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getUniversityId() {
		return universityId;
	}

	public void setUniversityId(int universityId) {
		this.universityId = universityId;
	}
}
